package com.tsd.base.service;

import com.tsd.base.entity.BaseRelatedParty;
import com.tsd.base.entity.BaseRelatedPartyExt;
import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：BaseRelatedParty服务实现层接口
 *
 * @author david
 * @date 2024/03/26 15:24:49
 */
public interface BaseRelatedPartyService {

    /**
     * 描述：根据id获取BaseRelatedParty
     *
     * @param id
     */
    BaseRelatedParty getBaseRelatedPartyById(Long id) throws Exception;

    /**
     * 描述：根据sid获取BaseRelatedParty
     *
     * @param sid
     */
    BaseRelatedPartyExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据sid列表删除BaseRelatedParty
     *
     * @param list
     */
    void deleteBaseRelatedPartys(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新BaseRelatedParty
     *
     * @param record
     * @param opUser
     */
    void saveBaseRelatedParty(BaseRelatedPartyExt record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询BaseRelatedParty
     *
     * @param params
     * @param page
     */
    List<BaseRelatedPartyExt> findBaseRelatedPartys(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询BaseRelatedParty
     *
     * @param params
     */
    List<BaseRelatedPartyExt> findBaseRelatedPartys(Map<String, Object> params) throws Exception;

    List<BaseRelatedPartyExt> findBaseRelatedPartyTypeTree(Map<String, Object> params) throws Exception;

    void importBaseRelatedPartys(List<BaseRelatedPartyExt> list, SysUser opUser) throws Exception;

    List<BaseRelatedPartyExt> findBaseRelatedPartyTypeTreeWithChildren(Map<String, Object> params) throws Exception;
}
